package com.cn.yz.springboot.model;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.bind.annotation.XmlRootElement;


/**
 * <pre>
 * @author 
 *
 * @version 0.1
 *
 * 修改版本: 0.1
 * 修改日期: 2017-05-22
 * 修改人 :  
 * 修改说明: 初步完成
 * 复审人 ：
 * </pre>
 */
@XmlRootElement
@JsonInclude(JsonInclude.Include.NON_NULL)
public class RabbitMQBind implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	private Integer id;

	/**
	 * 
	 */
	private Integer exchangeId;

	/**
	 * 
	 */
	private Integer queueId;

	/**
	 * 
	 */
	private String routingKey;

	/**
	 * 
	 */
	private String arguments;

	/**
	 * 
	 */
	private Integer status;

	/**
	 * 
	 */
	private String createBy;

	/**
	 * 
	 */
	private String modifyBy;

	/**
	 * 
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
	private Date createTime;

	/**
	 * 
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
	private Date modifyTime;

	/**
	 * 
	 */
	private String ext;
	
	public RabbitMQQueue getQueue() {
		return queue;
	}

	public void setQueue(RabbitMQQueue queue) {
		this.queue = queue;
	}

	private RabbitMQQueue queue;

	private RabbitMQExchange exchange;

	public RabbitMQExchange getExchange() {
		return exchange;
	}

	public void setExchange(RabbitMQExchange exchange) {
		this.exchange = exchange;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getExchangeId() {
		return exchangeId;
	}

	public void setExchangeId(Integer exchangeId) {
		this.exchangeId = exchangeId;
	}

	public Integer getQueueId() {
		return queueId;
	}

	public void setQueueId(Integer queueId) {
		this.queueId = queueId;
	}

	public String getRoutingKey() {
		return routingKey;
	}

	public void setRoutingKey(String routingKey) {
		this.routingKey = routingKey;
	}

	public String getArguments() {
		return arguments;
	}

	public void setArguments(String arguments) {
		this.arguments = arguments;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public String getModifyBy() {
		return modifyBy;
	}

	public void setModifyBy(String modifyBy) {
		this.modifyBy = modifyBy;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

}